package game;

import java.util.LinkedList;

import GUI.menuWin.MainFrame;


public final class GameSettingsOld {
	//Singleton
	private final static GameSettingsOld instance = new GameSettingsOld();
	public static GameSettingsOld getInstance() {
		return instance;
	}
	private GameSettingsOld() {
		isJAR=isJAR();
	}
	
	//zmienne
	public int carddecksUsed;
	public int roundCount;
	public int matchCount;
	public int playerCount;
	public LinkedList<Player> players;
	public static boolean testGame=false;
	public static int desRoundCount = 1000;
	public static int startingCardsCount = 5;
	public boolean isJAR;
	
	private boolean isJAR() {
		String className = this.getClass().getName().replace('.', '/');
		String classJar =  
		this.getClass().getResource("/" + className + ".class").toString();
		if (classJar.startsWith("jar:")) {
			return true;
		}
		return false;
	}
}
